package com.example.userserver.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


@Data
@ApiModel(value="用户信息")
public class UserInfo {
    @TableId
    @ApiModelProperty(value="主键")
    private String id;
    @TableField("user_name")
    @ApiModelProperty(value="名称")
    private String userName;
    @TableField("account")
    @ApiModelProperty(value="账户")
    private String account;
    @TableField("password")
    @ApiModelProperty(value="密码")
    private String password;
    @TableField("salt")
    @ApiModelProperty(value="加密盐")
    private String salt;
    @TableField("city_id")
    @ApiModelProperty(value="城市id")
    private String cityId;
    @TableField("school_id")
    @ApiModelProperty(value="学校id")
    private String schoolId;
    @TableField("student_id")
    @ApiModelProperty(value="学号")
    private String studentId;
    @TableField("role")
    @ApiModelProperty(value="用户角色 1用户 2管理员")
    private int role;
    @TableField("status")
    @ApiModelProperty(value="账户状态 1正常 2冻结 3注销")
    private int status;
    @TableField("photo")
    @ApiModelProperty(value="头像地址-主")
    private String photo;
    @TableField("create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;
    @TableField("update_time")
    @ApiModelProperty(value="创建时间")
    private Date updateTime;
    @ApiModelProperty(value="账号余额", example = "1")
    private Double balance;
    public UserInfo(){
    }

}
